package self.hoy.demo.grainmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import self.hoy.demo.common.utils.PageUtils;
import self.hoy.demo.grainmall.product.entity.Category;
import self.hoy.demo.grainmall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Hoy
 * @email xxx@gmail.com
 * @date 2020-07-04 19:01:00
 */
public interface CategoryService extends IService<Category> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * @date 2020-07-14 树形
     * @return
     */
    List<Category> listWithTree();

    void removeMenus(List<Long> idList);

    Long[] findPath(Long catelogId);

    void updateDetails(Category category);

    List<Category> getLevelCategorys(Long parentId);

    Map<Long, List<Catelog2Vo>> getCatalogJson();
}

